<?php

$cars= array("000","111","222",);
 echo $cars[1];
 $cars[2] = "Audi";
 

 echo "<hr/>";
 echo"<pre>";
 print_r($cars);
 echo count($cars);
 
 echo "foreach ::::.<br/>";
 foreach($cars as $value) {
     echo $value."<br/>";
 }
 
 echo "<hr/>";
 echo "for.<hr/>";
 $len =count($cars);
 for ($i =0; $i <$len; $i++){
     echo $cars[$i]."<br/>";
 }
 
 $grades = array("一","二","三","四","五","六","七","八","九","十","十一","十二");
 
?>
<form>
     第<select name="grade">
    <?php foreach($grades as $value) : ?>
    <option value="<?php echo $value; ?>"><?php echo $value; ?></option>
    <?php endforeach ; ?>
    </select> 月
</form>

